<html><head><title>Array</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">PureBasic - Array</font></b></p>

<p><b>Overview</b></p><blockquote>


Arrays are structures to store indexed elements. Unlike 
a <a href="../list/index.html">list</a> or a <a href="../map/index.html">map</a>, the 
elements are allocated in a contiguous manner in memory. Therefore, it's 
not possible to easily insert or remove an element. On other hand, 
it provides a very fast direct access to a random element. 
<br>
<br>
To work with Arrays, they have to be declared first. This could be 
done with the keyword <a href="../reference/dim.html">Dim</a>. 
<br>
<br>
Arrays can be sorted using <a href="../sort/sortarray.html">SortArray()</a> or <a href="../sort/sortstructuredarray.html">SortStructuredArray()</a>, and can also 
be randomized using <a href="../sort/randomizearray.html">RandomizeArray()</a>. 

</blockquote><p><b>Command Index</b><blockquote>
<a href="arraysize.html">ArraySize</a><br>
<a href="copyarray.html">CopyArray</a><br>
<a href="freearray.html">FreeArray</a><br>
</blockquote></p>

<p><b>Example</b></p><blockquote>
<a href="../Examples/Array.pb.html">Array.pb</a>

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><a href="../index.html">Reference Manual - Index</a></center><br><br>

</body></html>